import request from '/@/utils/request';

/**
 *
 * notice接口集合
 * @method noticeConfig 通知配置
 * @method noticeList 通知列表
 * @method sendPatient 发送通知给患者
 * @method sendDoctor 发送通知给医生
 */

export function noticeApi() {
	return {
		noticeConfig: () => {
			return request({
				url: '/notice/get_config',
				method: 'get',
			});
		},
    noticeList: (data) => {
			return request({
				url: '/notice/patient',
				method: 'post',
				data,
			});
		},
    sendPatient: (data) => {
			return request({
				url: '/notice/send_patient',
				method: 'post',
				data,
			});
		},
    sendDoctor: (data) => {
			return request({
				url: '/notice/send_doctor',
				method: 'post',
				data,
			});
		},
		noticeDoctorList: (params) => {
			return request({
				url: '/notice/doctor',
				method: 'get',
				params: params
			});
		},
    
	};
}


